package com.rui.study.micro.usermanager.service;

import com.rui.study.commons.model.BizException;
import com.rui.study.micro.usermanager.entity.UserInfo;

public interface UserService {
    /**
     * 创建用户账户
     * @param userInfo
     * @return
     */
    int createUserInfo(UserInfo userInfo) throws BizException;

    /**
     * 加载用户信息
     * @param username
     * @return
     */
    UserInfo loadUserInfo(String username);
}
